function {{_type}}() {
    'ngInject';
    return {
        restrict: 'A',
        controller($scope, {{_type}}Factory, sceneService, easeFormService) {
            'ngInject';
            $scope.createTestComp = () => {
                const eqxPage = sceneService.getCurrentPage();
                easeFormService.executeRender(eqxPage, {{_type}}Factory.getJSON());
            };
        },
        link: function ($scope, $ele) {
            $ele.on('click.{{type}}', () => {
                $scope.$apply(() => $scope.createTestComp());
            });
        },
    };
}
module.exports = {{_type}};
